<%@ page language="java" isErrorPage="true" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>

<%@ include file="/WEB-INF/pages/_common/taglibs.jsp" %>
<%@ include file="/WEB-INF/pages/_common/init.jsp" %>

<html>
	<head>
		<title><fmt:message key="errorPage.title"/></title>
	</head>
	<body>
		<title><fmt:message key="errorPage.title"/></title>
		<div id="screen">
			<div id="content">
				<h1><fmt:message key="errorPage.heading"/></h1>
				<%-- Error Messages --%>
				<logic:messagesPresent>
					<logic:present name="error">    
					<div class="error">	
						<html:messages id="error">
							<c:out value="${error}" escapeXml="false"/><br/>
						</html:messages>
					</div>
					</logic:present>
				</logic:messagesPresent>
			 <% if (exception != null) { %>
				<pre><% exception.printStackTrace(new java.io.PrintWriter(out)); %></pre>
			 <% } else if ((Exception)request.getAttribute("javax.servlet.error.exception") != null) { %>
				<pre><% ((Exception)request.getAttribute("javax.servlet.error.exception")).printStackTrace(new java.io.PrintWriter(out)); %></pre>
			 <% } %>
			 </div>
		</div>
	</body>
</html>
